@import "mixins/mixins";
@import "mixins/utils";
@import "common/var";
@import "common/transition";

@mixin menu-item {
  height: 40px;
  line-height: 40px;
  font-size: $--menu-item-font-size;
  color: $--menu-item-font-color;
  padding: 0 20px;
  list-style: none;
  cursor: pointer;
  position: relative;
  transition: background-color .3s, color .3s;
  box-sizing: border-box;
  white-space: nowrap;
  border-radius: 4px;
  margin-top: 17px;
  * {
    vertical-align: middle;
  }

  &:hover {
    outline: none;
    // background-color: $--menu-item-hover-fill;
    color: $--color-white;
    // opacity: 1;
  }
  &:focus{
    outline: none;
  }
  @include when(disabled) {
    opacity: 0.25;
    cursor: not-allowed;
    background: none !important;
  }
}

@include b(menu) {
  list-style: none;
  position: relative;
  margin: 0;
  padding-left: 0;
  background-color: $--menu-background-color;
}
@include b(menu-item) {
  @include menu-item;
  display: flex;
  align-items: center;
  // color: $--color-white;
  // opacity: .7;
  .svg-icon {
    margin-right: 8px;
    font-size: 20px;
    vertical-align: middle;
  }
  @include when(active) {
    background-color: rgba(255,255,255,0.1);
    color: $--color-white;
    // opacity: 1;
    // background-color: $--menu-item-hover-fill;
    // padding-left: 17px!important;
    // border-left:3px solid #00BBD7;
    i {
      color: inherit;
    }
  }
}